home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / tptc17.zip / ERRORS.DOC next >
Text File  |  1988-03-26  |  4KB  |  97 lines

  1.  
  2. Explanation of Error Messages generated by TPTC
  3. ===============================================
  4.  
  5. Fatal: Aborted by <escape> key
  6.    This message indicates that the user pressed the ESCAPE key to  abort
  7.    the translation in progress.
  8.         
  9. Fatal: Can't create tempfile: <NAME>
  10.    The translator wanted to create a temporary file but could not.  
  11.    This is usually caused by an invalid drive or directory  specified
  12.    with the '-w' command line option.  It could also be  caused by
  13.    insufficient disk space, not enough file handles  available, or
  14.    excessive procedure block nesting.
  15.         
  16. Fatal: Can't open unit symbol file: <NAME>
  17.    The translator needed to load a unit symbol file (a .UNS file),  but
  18.    could not locate the file.  Tptc needs to load TPTCSYS.UNS  for each
  19.    translation (this file defines the default environment  and
  20.    predefined functions).  This could also be caused by a  missing or
  21.    incorrect directory specification in the '-s' command  line option.
  22.         
  23. Fatal: Functions nested too deeply
  24.    Procedure or function units were nested more than 10 levels  deeply. 
  25.    This might also be caused by a missing "interface"  keyword (which
  26.    would cause the procedure specifications to look  like nested
  27.    procedure implementations).
  28.         
  29. Fatal: Includes nested too deeply
  30.    Include files may be nested up to two levels.  
  31.         
  32. Fatal: Out of memory
  33.    There was not enough memory to make another symbol table entry,  or
  34.    to allocate the buffer for a new file.  Increase memory, divide your
  35.    program into smaller parts, or include fewer units  in your "uses"
  36.    statement.
  37.  
  38. Fatal: Out of stack space 
  39.    This error indicates that all available stack was exhausted  while
  40.    parsing your source file.  It can be caused by highly  complex
  41.    expressions in conjunction with high levels of procedure  unit
  42.    nesting.
  43.  
  44. Fatal: Too many identifiers 
  45.    You listed too many identifiers in a declaration before the data 
  46.    type specification.  These identifiers are limited because they must
  47.    be held until the ': type' clause is reached.  Break up the 
  48.    declaration into two or more parts.
  49.  
  50. Fatal: Too many params
  51.    There were too many parameters in the current procedure  declaration
  52.    or call.  This is currently limited to 16.
  53.  
  54. Error: Identifier expected
  55.    In an expression, a symbol or keyboard was found where an  identifier
  56.    (variable name) was required.  
  57.  
  58. Error: Section header expected
  59.    The translator was expecting VAR, CONST, TYPE, PROCEDURE,  FUNCTION,
  60.    or some other main section header.  Instead, it found  an identifier
  61.    or special character.  Often caused by faulty  recovery from a
  62.    previous error.
  63.  
  64. Warning: Dynamic length reference
  65.    A reference to the zero-th byte in a string was detected.  Since 
  66.    translated code uses the C convention for strings, this code 
  67.    requires a conversion to C string conventions.
  68.         
  69. Warning: Gigantic case range
  70.    A numeric range in a case selector covers too great a range.   Since
  71.    the translator must benerate a line of code for each value  within
  72.    the range, it is advised that the statement be recoded  using an if
  73.    statement.
  74.         
  75. Warning: Inline procedure
  76.    An inline procedure was detected within an interface section.  
  77.    Interface sections must not contain executable code in the C 
  78.    language target files.  Convert this to a normal procedure 
  79.    containing an inline statement.
  80.         
  81. Warning: Interrupt handler
  82.    An 'interrupt' procedure was detected.  These procedures require 
  83.    special attention, since the C conventions for interrupt  handlers
  84.    differ from those of turbo pascal.
  85.         
  86. Warning: Nested function
  87.    This warning is generated when a nested procedure/function block  is
  88.    found.  The translator does not yet translate shared  variables or
  89.    formal parameters among nested functions.
  90.  
  91. Warning: Redeclaration not identical
  92.    A global procedure, function or variable declaration is incompatible
  93.    with a previous declaration of the same name.  This sometimes
  94.    results from nested procedures or local constants.  
  95.  
  96.         
  97.